<script type="text/javascript">
    tinyMCE.init({
        theme : "advanced",
        mode : "textareas",
        convert_urls : false,
        plugins : "emotions,spellchecker,advhr,insertdatetime,preview",

        // Theme options - button# indicated the row# only
        theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect",
        theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,|,code,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true

    });
</script> 

<div class="articulos form">
    <?php echo $this->Form->create('Articulo', array('url' => array('action' => 'add', $categoria), 'type' => 'file')); ?>
    <fieldset>
        <legend><?php __('Admin Add Articulo'); ?></legend>
        <?php
        echo $this->Form->input('titulo');
        echo $this->Form->input('prioridad',array('value' => 0));
        echo $this->Form->hidden('categoria', array('value' => $categoria));
        echo $form->input('imagen', array('type' => 'file'));
        echo $this->Form->textarea('contenido', array('cols' => 10, 'rows' => 25));
        ?>
    </fieldset>
    <?php echo $this->Form->end(__('Submit', true)); ?>
</div>
<div class="actions">
    <h3><?php __('Actions'); ?></h3>
    <ul>

        <li><?php echo $this->Html->link(__('List Articulos', true), array('action' => 'index', $categoria)); ?></li>
<!--            <li><?php echo $this->Html->link(__('List Imagens', true), array('controller' => 'imagens', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Imagen', true), array('controller' => 'imagens', 'action' => 'add')); ?> </li>-->
    </ul>
</div>